public class Numbers
{
   /**
      Counts the number of perfect squares in a given range
      @param a the lower bound of the range
      @param b the upper bound of the range
      @return the number of perfect squares in the range [a,b] (including the bounds)
   */
   public int countPerfectSquares(int a, int b)
   {
      // your work here
      int sum = 0;
      for(int i=1;i<=b;i++){
         if(i*i<=b && i*i>=a)
         sum++;
      }
      if(a==0&&b==0)
      sum = 1;
      return sum;
   
   
   
   
   }
}